import request from "./http"

// 用户注册

export function registerAPI(params) {
  return request({
    url: "User/UNUser",
    method: "get",
    params,
  });

}

// 上传用户头像
export function uploadAvatarAPI(file) {
  let formData = new FormData();
  formData.append("file", file.file);
  return request.post("User/addImage", formData, {
    headers: {
      'enctype': 'multipart/form-data'
    },
  });
}  